#ifndef __BSP_DELAY_H__
#define __BSP_DELAY_H__

#include "imx6u.h"

void short_delay(volatile unsigned int n);
void delay(volatile unsigned int m);

void delay_init(void);
void gpt_system_irq_handler_t(IRQn_Type irq, void *userparam);
void gpt_irq_enable(GPT_Type *base);
void gpt_irq_disable(GPT_Type *base);
void gpt_enable(GPT_Type *base);
void gpt_disable(GPT_Type *base);
void gpt_cleanIrqFlag(GPT_Type *base);
void delay_us(int time_us);
void delay_ms(int time_ms);

#endif 